package com.bdjk.bdmw.InfoGath.business.beianbei.service.impl;

import com.bdjk.bdmw.InfoGath.business.beianbei.model.BeiAnBeiPositionModel;
import com.bdjk.bdmw.InfoGath.business.beianbei.model.BeiAnBeiShortModel;
import com.bdjk.bdmw.InfoGath.business.beianbei.service.BeiAnBeiAlarmService;
import com.bdjk.bdmw.InfoGath.communication.server.tcp.netty.SendClientCommand;

public class BeiAnBeiAlarmServiceImpl implements BeiAnBeiAlarmService{

	@Override
	public void sendAlarmSet(BeiAnBeiPositionModel model) {
		// TODO Auto-generated method stub
		StringBuffer msgBuffer = new StringBuffer("[");
	    msgBuffer.append(model.getCommType()).append("*").append(model.getTerIdent());
	    String strprefix = msgBuffer.toString();
	    StringBuffer smsOn = new StringBuffer(strprefix).append("*000A*SMSONOFF,1]");
	    SendClientCommand sendCommand=new SendClientCommand();
	    sendCommand.send(model.getTerIdent(), smsOn.toString());
	}

}
